package PageObj;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;

/**
 * Created by boris on 31.05.14.
 */
public class AbstractPage {
    protected WebDriver webDriver;

    /*
     * Constructor injecting the WebDriver interface
     *
     * @param webDriver
     */
    public AbstractPage(WebDriver webDriver) {
        this.webDriver = webDriver;
        PageFactory.initElements(webDriver, this);
    }

    public WebDriver getWebDriver() {
        return webDriver;
    }

}
